﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
namespace GameVLTK
{
    public abstract class Dialog : Window
    {
        private List<Control> _Controls;

        protected List<Control> Controls
        {
            get { return _Controls; }
            set { _Controls = value; }
        }
       
        private MySprite _BackGround;

        protected MySprite BackGround
        {
            get { return _BackGround; }
            set { _BackGround = value; }
        }

      
        public override void Update(GameTime gameTime)
        {
             for (int i = 0; i < this.Controls.Count; i++)
                this.Controls[i].Update(gameTime);
            
        }

        public override void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            for (int i = 0; i < this.Controls.Count; i++)
              this.Controls[i].Draw(gameTime, spriteBatch);
        }

    }
}
